﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="read.aspx.cs" Inherits="AnyOffice.general.knowledge.read" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
    <title id="litTitle" runat="server">Office 文档在线编辑</title>
    <script type="text/javascript" language="JavaScript" src="/module/oc/ntkoocx.js"></script>
    <style type="text/css">
        BUTTON.op
        {
            border-right: #eeeeee 1px solid;
            border-top: #eeeeee 1px solid;
            border-left: #eeeeee 1px solid;
            width: 120px;
            cursor: hand;
            border-bottom: #eeeeee 1px solid;
            background-color: #9dc2db;
        }
    </style>
    <script type="text/javascript">
        function WebOffice1_NotifyCtrlReady() {
            document.all.WebOffice1.LoadOriginalFile("/<%=url%>", "<%=fileType%>");
            document.all.WebOffice1.HideMenuArea('hideall', '', '', '');
            document.all.WebOffice1.HideMenuItem(0x01 + 0x02 + 0x04 + 0x4000 + 0x80);

        }
    </script>
</head>
<body class="bodycolor" leftmargin="0" topmargin="5">
    <script language="javascript" for="WebOffice1" event="NotifyCtrlReady">
       
         WebOffice1_NotifyCtrlReady() // 在装载完Weboffice(执行<object>...</object>)控件后自动执行WebOffice1_NotifyCtrlReady方法
       
    </script>
    <form id="myForm" method="post" enctype="multipart/form-data" action="uploaddisk.aspx">
    <%--<table width=100% height=100% class="small" cellspacing="1" cellpadding="3" align="center">
				<tr width="100%">
					<td valign="top" width="80">
						<table border="0" cellspacing="1" width="100%" class="small" bgcolor="#000000" cellpadding="3"
							align="center">
							<TBODY>
							    <%if (filePrint == "-1") { %>
								<TR class="TableHeader">
                                    <TD noWrap align="middle">文件操作</TD>
                                    </TR>
                                    <TR class="TableData" style="CURSOR: hand" onclick="TANGER_OCX_PrintDoc();">
                                    <TD noWrap align="middle">打印</TD>
                                </TR>
                                 <%} %>
                                <%if(!isppt){ %>
                                <TR class="TableHeader">
                                    <TD noWrap align="middle">电子认证</TD>
                                    </TR>
                                    <TR class="TableData" style="CURSOR: hand" onclick="DoCheckSign();">
                                    <TD noWrap align="middle">验证签名及印章</TD>
                                </TR>
                                <%} %>
							</TBODY>
						</table>
					</td>
					<td width="100%">
						<OBJECT id="TANGER_OCX" codeBase="/lib/ntko/officecontrol.cab#version=4,0,0,7" height="100%" width="100%"
							classid="clsid:C9BC4DFF-4248-4a3c-8A49-63A7D317F404" VIEWASTEXT>
							<param name="MakerCaption" value="北京思道图强科技有限公司">
                            <param name="MakerKey" value="24A5746461573FC9E037B4880244598A7AD894E3">
                            <param name="ProductCaption" value="思道科技 www.anyoffice.net">
                            <param name="ProductKey" value="6FD48B0A725F0A9984AA28D46952725DD7481D1E">
							<PARAM NAME="_ExtentX" VALUE="18071">
							<PARAM NAME="_ExtentY" VALUE="20981">
							<PARAM NAME="BorderColor" VALUE="14402205">
							<PARAM NAME="BackColor" VALUE="-2147483643">
							<PARAM NAME="ForeColor" VALUE="-2147483640">
							<PARAM NAME="TitlebarColor" VALUE="14402205">
							<PARAM NAME="TitlebarTextColor" VALUE="0">
							<PARAM NAME="BorderStyle" VALUE="1">
							<PARAM NAME="Titlebar" VALUE="1">
							<PARAM NAME="Toolbars" VALUE="1">
							<PARAM NAME="Caption" VALUE="Office文档在线编辑">
							<PARAM NAME="IsShowToolMenu" VALUE="1">
							<PARAM NAME="IsNoCopy" VALUE="<%=isNoCopy %>">
							<PARAM NAME="IsHiddenOpenURL" VALUE="0">
							<PARAM NAME="MaxUploadSize" VALUE="0">
							<PARAM NAME="Menubar" VALUE="1">
							<PARAM NAME="Statusbar" VALUE="1">
							<PARAM NAME="FileNew" VALUE="0">
							<PARAM NAME="FileOpen" VALUE="0">
							<PARAM NAME="FileClose" VALUE="-1">
							<PARAM NAME="FileSave" VALUE="0">
							<PARAM NAME="FileSaveAs" VALUE="0">
							<PARAM NAME="FilePrint" VALUE="<%=filePrint %>">
							<PARAM NAME="FilePrintPreview" VALUE="-1">
							<PARAM NAME="FilePageSetup" VALUE="-1">
							<PARAM NAME="FileProperties" VALUE="-1">
							<PARAM NAME="IsStrictNoCopy" VALUE="0">
							<PARAM NAME="IsUseUTF8URL" VALUE="0">
							<PARAM NAME="MenubarColor" VALUE="-2147483643">
							<PARAM NAME="IsUseControlAgent" VALUE="0">
							<PARAM NAME="IsUseUTF8Data" VALUE="0">
							<PARAM NAME="IsSaveDocExtention" VALUE="0">
							<PARAM NAME="IsDirectConnect" VALUE="0">
							<PARAM NAME="SignCursorType" VALUE="0">
							<PARAM NAME="IsResetToolbarsOnOpen" VALUE="0">
							<PARAM NAME="IsSaveDataIfHasVDS" VALUE="0">
							<SPAN STYLE="color:red">不能装载文档控件。请在检查浏览器的选项中检查浏览器的安全设置。</SPAN>
						</OBJECT>
						<script language="JScript" for="TANGER_OCX" event="OnDocumentOpened(TANGER_OCX_str,TANGER_OCX_obj)">
						TANGER_OCX_OnDocumentOpened(TANGER_OCX_str,TANGER_OCX_obj);						
						</script>
					</td>
				</tr>
			</table>--%>
    <div style="width: 100%; height: 620px">
        <!-- -----------------------------== 装载weboffice控件 ==----------------------------------->
        <script src="../../weboffice/LoadWebOffice.js" type="text/javascript"></script>
        <!-- --------------------------------==  结束装载控件 ==------------------------------------->
    </div>
    <!-- TANGER_OCX_op 1编辑,0阅读-->
    <input type="hidden" name="TANGER_OCX_op" value="<%=_op%>">
    <input type="hidden" name="TANGER_OCX_attachid" value="">
    <input type="hidden" name="TANGER_OCX_attachmentid" value="<%=_path%>">
    <input type="hidden" name="TANGER_OCX_filename" value="<%=_filename%>">
    <input type="hidden" name="TANGER_OCX_username" value="<%=_username%>">
    </form>
</body>
</html>
